import request from '@/utils/request'

export const regAPI = obj => request.post('/api/reg', obj)
export const loginAPI = obj => request.post('/api/login', obj)
export const getUserAPI = () => request.get('/my/userinfo')
// 更新用户数据
export const updateUserAPI = data => request.put('/my/userinfo', data)
export const updatePwdAPI = data => request.patch('/my/updatepwd', data)
export const uploadAPI = base64 => request.patch('/my/update/avatar', { avatar: base64 })
